package com.ozy.kxreader.mvp.model

import com.ozy.kxreader.base.Api
import com.ozy.kxreader.di.scope.ActivityScope
import com.ozy.kxreader.mvp.contract.BookListContract
import com.ozy.kxreader.mvp.model.entity.BookList
import io.reactivex.Observable
import javax.inject.Inject

/**
 * Created by 欧源 on 2018/1/30.
 */
@ActivityScope
class BookListModel
@Inject constructor(private val api: Api) : BookListContract.Model {
    override fun getBookList(gender: String?, major: String?, minor: String?, type: String?, start: Int, limit: Int): Observable<BookList> {
        return api.getBookList(gender,major,minor,type,start,limit)
    }


}